<template>
    <div>
        <van-search v-model="value" placeholder="请输入搜索关键词" @search="onSearch"/>
    </div>
</template>

<script setup>
import router from '@/router';

const onSearch = () => {
    router.push('/list')
};
</script>

<style lang="scss" scoped></style>